<?php
session_start();
require '../nette/Nette/loader.php';
require '../db.php';
require '../localization/lang.php';
require '../core/core.sanitizer.php';
require '../core/core.security.php';
require '../core/core.dfs.php';
require '../visual/visual.dfs.php';

$login=new core_security;
if ($login->checklogin()=="OK" AND $_SESSION['role']<=1) {
$loc= new loc;
echo "<h3>".$loc->chooseusersforstatistics."</h3>";
$query="select id,name,statistics from users";
$result=mysql_query($query);
while ($row=mysql_fetch_array($result)) {
	if ($row['statistics']==1) {$checked="checked";}else{$checked="unchecked";}
	echo $row['name']." <input type= checkbox ".$checked." name='usercheckbox' value='dummy' onClick='checkuncheckuser(\"".$row['id']."\")'> ";
	}
}
?>
